<script>
    $(function () {
        function needUpgrade() {
            if (window.navigator.userAgent.indexOf("MSIE") >= 1) {
                return true;
            }
            return false;
        }

        if (!needUpgrade()) {
            return
        }
        var cookie = document.cookie;
        if (cookie.indexOf('BrowserUpgradeDialogClose') >= 0) {
            return;
        }
        $('#BrowserUpgradeDialog').show();
        $('#BrowserUpgradeDialog [data-close]').on('click', function () {
            document.cookie = "BrowserUpgradeDialogClose=true";
            $('#BrowserUpgradeDialog').remove();
            return false;
        });
    });
</script>
<div id="BrowserUpgradeDialog" style="display:none;position:fixed;top:0;left:0;right:0;z-index:10000;"
     class="ub-bg-a ub-text-center tw-py-4">
    <h3 class="tw-px-14">您正在使用低版本浏览器，为了获得更良好的体验，建议您升级浏览器，为您推荐：</h3>
    <div>
        <a class="btn btn-round" href="https://www.google.com/intl/zh-CN/chrome/" target="_blank">谷歌浏览器</a>
        <a class="btn btn-round" href="http://download.firefox.com.cn/releases/stub/official/zh-CN/Firefox-latest.exe"
           target="_blank">火狐浏览器</a>
        <a class="btn btn-round" href="https://browser.360.cn/" target="_blank">360浏览器</a>
    </div>
    <a data-close
       style="position:fixed;top:20px;right:20px;border:1px solid #EEE;border-radius:50%;line-height:36px;width:40px;height:40px;color:#FFF;font-size:20px;"
       href="javascript:;">×</a>
</div>
